﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true" CodeFile="ABMFuncionesTecnopez.aspx.cs" Inherits="TecnoPezWeb.Modules.Seguridad.ABMFuncionesTecnopez" Title="Untitled Page" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" Runat="Server">
    <asp:Wizard ID="wzrABM" runat="server" ActiveStepIndex="1" BorderColor="#B5C7DE"
        BorderWidth="0px" DisplaySideBar="False" Font-Names="Verdana" Font-Size="0.8em">
        <StepStyle Font-Size="0.8em" ForeColor="#333333" VerticalAlign="Top" />
        <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
        <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
        <WizardSteps>
            <asp:WizardStep ID="wzrBusqueda" runat="server" StepType="Complete" Title="Busqueda">
                <table id="TableData" cellspacing="0" style="width: 100%">
                    <tr>
                        <td class="cabeceraTabla" colspan="3">
                            <asp:Label ID="lblTitulo" runat="server" Text="Buscar Funciones de Tecnopez"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="lblBuscarNombre" runat="server" Text="Nombre" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 210px">
                            <asp:TextBox ID="txtBuscarNombre" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td rowspan="2" valign="top">
                            <asp:Button ID="cmdBuscar" runat="server" BorderStyle="None" CssClass="Boton" Height="23px"
                                Text="Buscar" Width="102px" OnClick="cmdBuscar_Click" />
                            <asp:Button ID="cmdNuevo" runat="server" CssClass="Boton" Height="23px" OnClick="cmdNuevo_Click"
                                Text="Nueva" Width="102px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="lblBuscarDescripcion" runat="server" Text="Descripcion" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 210px">
                            <asp:TextBox ID="txtBuscarDescripcion" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="height: 170px">
                            <br />
                            <br />
                            <asp:GridView ID="grdFuncionesTecnopez" runat="server" CellPadding="4" ForeColor="#333333"
                                GridLines="Vertical" CssClass="Grilla" Width="100%" OnRowCommand="grdFuncionesTecnopez_RowCommand">
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <EditRowStyle BackColor="#999999" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <PagerStyle BackColor="#5D7B9D" ForeColor="White" HorizontalAlign="Center" />
                            </asp:GridView>
                            <br />
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="wzrEdicion" runat="server" StepType="Complete" Title="Edicion">
                <table cellspacing="0" width="100%">
                    <tr>
                        <td class="cabeceraTabla" colspan="4" style="height: 20px">
                            Datos de la Función de Tecnopez</td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px; height: 26px">
                            <asp:Label ID="Label1" runat="server" Text="C&#243;digo" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px; height: 26px">
                            <asp:TextBox ID="txtID" runat="server" Width="100px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px; height: 26px">
                            &nbsp;</td>
                        <td rowspan="2" style="width: 7px" valign="top">
                            <asp:Button ID="cmdEditar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" Text="Editar" Width="102px" OnClick="cmdEditar_Click" />
                            <asp:Button ID="cmdEliminar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" Text="Eliminar" Width="102px" OnClick="cmdEliminar_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px">
                            <asp:Label ID="Label2" runat="server" Text="Nombre" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px">
                            <asp:TextBox ID="txtNombre" runat="server" MaxLength="30" Width="300px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px">
                            <asp:RequiredFieldValidator ID="rfv_Nombre" runat="server" ControlToValidate="txtNombre"
                                Display="Dynamic" ErrorMessage="Ingrese nombre" Width="5px">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px" valign="top">
                            <asp:Label ID="Label4" runat="server" Text="Descripci&#243;n" Width="200px"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <asp:TextBox ID="txtDescripcion" runat="server" Rows="5" TextMode="MultiLine"
                                Width="300px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 7px" valign="bottom">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px" valign="top">
                            <asp:Label ID="lblUrl" runat="server" Text="Url"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <asp:TextBox ID="txtUrl" runat="server" MaxLength="250" Width="300px"></asp:TextBox>
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                            &nbsp;</td>
                        <td style="width: 7px" valign="bottom">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px" valign="top">
                            <asp:Label ID="lblImageUrl" runat="server" Text="Url imagen"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <div id="divFileUpload" style="display: block;">
                                <asp:FileUpload ID="fupImageUrl" runat="server" Width="300px" />
                                </div>
                            <div id="divTxtFileUpload" style="display: block;">
                                <asp:TextBox ID="txtImagen" runat="server" Width="195px"></asp:TextBox>
                            <br />
                            </div>
                            <asp:CheckBox ID="chkImagen" runat="server" Text="Mantener imagen" />
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 7px" valign="bottom">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px" valign="top">
                            <asp:Label ID="lblFuncionPadre" runat="server" Text="Funci&#243;n padre"></asp:Label>
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            <uc1:TecnoPezPopUp ID="pupFuncionPadre" runat="server" />
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 7px" valign="bottom">
                        </td>
                    </tr>
                    <tr>
                        <td class="columnaLabels" style="width: 200px" valign="top">
                        </td>
                        <td class="columnaData" style="width: 205px" valign="top">
                            &nbsp;
                        </td>
                        <td class="columnaData" style="width: 1px" valign="top">
                        </td>
                        <td style="width: 7px" valign="bottom">
                            <asp:Button ID="cmdAceptar" runat="server" CssClass="Boton" Height="23px" OnClick="cmdAceptar_Click"
                                Text="Aceptar" Width="102px" />
                            <br />
                            <asp:Button ID="cmdCancelar" runat="server" CausesValidation="False" CssClass="Boton"
                                Height="23px" OnClick="cmdCancelar_Click" Text="Cancelar" Width="102px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 25px" valign="top">
                            <asp:ValidationSummary ID="ValidationSummary" runat="server" />
                            <asp:Label ID="_lblError" runat="server" CssClass="errorLabel"></asp:Label>
                        </td>
                        <td colspan="1" style="width: 1px; height: 25px" valign="top">
                        </td>
                        <td style="width: 7px; height: 25px" valign="top">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 25px" valign="top">
                            &nbsp;
                        </td>
                        <td colspan="1" style="width: 1px; height: 25px" valign="top">
                        </td>
                        <td style="width: 7px; height: 25px" valign="top">
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
        </WizardSteps>
        <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
        <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
            Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
    </asp:Wizard>
    <script type="text/javascript" language="javascript">
        function showDiv()
        {
            var div=document.getElementById('divFileUpload');
            if (div.style.display=='block')
            {
                div.style.display='none';
                document.getElementById('divTxtFileUpload').style.display='block';
            }
            else
            {
                div.style.display='block';
                document.getElementById('divTxtFileUpload').style.display='none';
            }
        }
        
        if (isFirst=='true')
        {
            document.getElementById('divTxtFileUpload').style.display='block';
            document.getElementById('divFileUpload').style.display='none';
            isFirst='false';
        }
    </script>
</asp:Content>
